import request from '@/utils/request'

// 列表
export function queryWmsBdStockList(data) {
  return request({
    url: '/wmsBdStock/queryWmsBdStockList',
    method: 'post',
    data
  })
}
// 详情
export function queryWmsBdStockDetails(params) {
  return request({
    url: '/wmsBdStock/queryWmsBdStockDetails',
    method: 'get',
    params
  })
}
// 新增
export function insertWmsStock(data) {
  return request({
    url: '/wmsBdStock/insertWmsStock',
    method: 'post',
    data
  })
}
// 更新
export function updateWmsStock(data) {
  return request({
    url: '/wmsBdStock/updateWmsStock',
    method: 'post',
    data
  })
}
// 删除
export function deleteWmsStock(data) {
  return request({
    url: '/wmsBdStock/deleteWmsStock',
    method: 'put',
    data
  })
}
// 反提交
export function notsubmitWmsStock(data) {
  return request({
    url: '/wmsBdStock/notsubmitWmsStock',
    method: 'post',
    data
  })
}
// 提交
export function submitWmsStock(data) {
  return request({
    url: '/wmsBdStock/submitWmsStock',
    method: 'post',
    data
  })
}
// 反审核
export function notreviewWmsStock(data) {
  return request({
    url: '/wmsBdStock/notreviewWmsStock',
    method: 'post',
    data
  })
}
// 审核
export function reviewWmsStock(data) {
  return request({
    url: '/wmsBdStock/reviewWmsStock',
    method: 'post',
    data
  })
}
// 禁用
export function disableWmsStock(data) {
  return request({
    url: '/wmsBdStock/disableWmsStock',
    method: 'post',
    data
  })
}
// 反禁用
export function ableWmsStock(data) {
  return request({
    url: '/wmsBdStock/ableWmsStock',
    method: 'post',
    data
  })
}
// 仓位
// 仓位列表查询
export function queryWmsBdStockPosList(data) {
  return request({
    url: '/wmsBdStockPosition/queryWmsBdStockPosList',
    method: 'post',
    data
  })
}
// 仓位查询详情
export function queryWmsBdStockPosDetails(params) {
  return request({
    url: '/wmsBdStockPosition/queryWmsBdStockPosDetails',
    method: 'get',
    params
  })
}
// 仓位新增
export function insertWmsStockPos(data) {
  return request({
    url: '/wmsBdStockPosition/insertWmsStockPos',
    method: 'post',
    data
  })
}
// 仓位更新
export function updateWmsStockPos(data) {
  return request({
    url: '/wmsBdStockPosition/updateWmsStockPos',
    method: 'post',
    data
  })
}
// 仓位删除
export function deleteWmsStockPos(data) {
  return request({
    url: '/wmsBdStockPosition/deleteWmsStockPos',
    method: 'put',
    data
  })
}
// 仓位提交
export function submitWmsStockPos(data) {
  return request({
    url: '/wmsBdStockPosition/submitWmsStockPos',
    method: 'post',
    data
  })
}
// 仓位反提交
export function notsubmitWmsStockPos(data) {
  return request({
    url: '/wmsBdStockPosition/notsubmitWmsStockPos',
    method: 'post',
    data
  })
}
// 仓位反审核
export function notreviewWmsStockPos(data) {
  return request({
    url: '/wmsBdStockPosition/notreviewWmsStockPos',
    method: 'post',
    data
  })
}
// 仓位审核
export function reviewWmsStockPos(data) {
  return request({
    url: '/wmsBdStockPosition/reviewWmsStockPos',
    method: 'post',
    data
  })
}
// 仓位禁用
export function disableWmsStockPos(data) {
  return request({
    url: '/wmsBdStockPosition/disableWmsStockPos',
    method: 'post',
    data
  })
}
// 仓位反禁用
export function ableWmsStockPos(data) {
  return request({
    url: '/wmsBdStockPosition/ableWmsStockPos',
    method: 'post',
    data
  })
}
// 条码管理
// 条码列表
export function queryTBdCodeList(data) {
  return request({
    url: '/wmsBdCode/queryTBdCodeList',
    method: 'post',
    data
  })
}
// 条码详情
export function queryTBdCodeDetails(data) {
  return request({
    url: '/wmsBdCode/queryTBdCodeDetails',
    method: 'post',
    data
  })
}
// 条码新增
export function insertCode(data) {
  return request({
    url: '/wmsBdCode/insertCode',
    method: 'post',
    data
  })
}
// 条码更新
export function updateCode(data) {
  return request({
    url: '/wmsBdCode/updateCode',
    method: 'post',
    data
  })
}
// 条码删除
export function deleteCode(data) {
  return request({
    url: '/wmsBdCode/deleteCode',
    method: 'post',
    data
  })
}
// 条码反提交
export function notsubmitWmsCode(data) {
  return request({
    url: '/wmsBdCode/notsubmitWmsCode',
    method: 'post',
    data
  })
}
// 条码提交
export function submitWmsCode(data) {
  return request({
    url: '/wmsBdCode/submitWmsCode',
    method: 'post',
    data
  })
}
// 条码反审核
export function notreviewWmsCode(data) {
  return request({
    url: '/wmsBdCode/notreviewWmsCode',
    method: 'post',
    data
  })
}
// 条码审核
export function reviewWmsCode(data) {
  return request({
    url: '/wmsBdCode/reviewWmsCode',
    method: 'post',
    data
  })
}
// 条码反禁用
export function ableWmsCode(data) {
  return request({
    url: '/wmsBdCode/ableWmsCode',
    method: 'post',
    data
  })
}
// 条码禁用
export function disableWmsCode(data) {
  return request({
    url: '/wmsBdCode/disableWmsCode',
    method: 'post',
    data
  })
}
// 盘点方案列表
export function queryList(data) {
  return request({
    url: '/wmsStkcountscheme/queryList',
    method: 'post',
    data
  })
}
// 盘点方案 新增
export function insertStkcountscheme(data) {
  return request({
    url: '/wmsStkcountscheme/insertStkcountscheme',
    method: 'post',
    data
  })
}
// 盘点方案 详情
export function getStkcountschemeById(params) {
  return request({
    url: '/wmsStkcountscheme/getStkcountschemeById',
    method: 'get',
    params
  })
}
// 盘点方案 修改
export function updateStkcountscheme(data) {
  return request({
    url: '/wmsStkcountscheme/updateStkcountscheme',
    method: 'post',
    data
  })
}
// 盘点方案 删除
export function deleteStkcountscheme(data) {
  return request({
    url: '/wmsStkcountscheme/deleteStkcountscheme',
    method: 'post',
    data
  })
}
// 盘点方案 审核
export function stkCountAudit(data) {
  return request({
    url: '/wmsStkcountscheme/stkCountAudit',
    method: 'put',
    data
  })
}
// 盘点方案 反审核
export function stkCountUnAudit(data) {
  return request({
    url: '/wmsStkcountscheme/stkCountUnAudit',
    method: 'put',
    data
  })
}
// 盘点方案 提交
export function stkCountSubmit(data) {
  return request({
    url: '/wmsStkcountscheme/stkCountSubmit',
    method: 'put',
    data
  })
}
// 盘点方案 反提交
export function stkCountAuSubmit(data) {
  return request({
    url: '/wmsStkcountscheme/stkCountAuSubmit',
    method: 'put',
    data
  })
}
// 盘点方案 关闭
export function stkCountClose(data) {
  return request({
    url: '/wmsStkcountscheme/stkCountClose',
    method: 'post',
    data
  })
}
// 盘点方案 反关闭
export function stkCountUnClose(data) {
  return request({
    url: '/wmsStkcountscheme/stkCountUnClose',
    method: 'post',
    data
  })
}
// wms 入库列表
export function queryTBdInstockList(data) {
  return request({
    url: '/wmsBdInstock/queryTBdInstockList',
    method: 'post',
    data
  })
}
// wms 出库列表
export function queryTBdOutstockList(data) {
  return request({
    url: '/wmsBdOutstock/queryTBdOutstockList',
    method: 'post',
    data
  })
}
//  盘点方案下推 生成盘点作业
export function putStkInPut(data) {
  return request({
    url: '/wmsStkcountinput/putStkInPut',
    method: 'post',
    data
  })
}
//  盘点作业列表
export function queryStkcountInPutList(data) {
  return request({
    url: '/wmsStkcountinput/queryStkcountInPutList',
    method: 'post',
    data
  })
}
//  盘点作业修改
export function updateStkcountInPut(data) {
  return request({
    url: '/wmsStkcountinput/updateStkcountInPut',
    method: 'post',
    data
  })
}
//  盘点作业删除
export function deleteStkcountInPut(data) {
  return request({
    url: '/wmsStkcountinput/deleteStkcountInPut',
    method: 'post',
    data
  })
}
//  盘点作业反提交
export function stkCountInPutAuSubmit(data) {
  return request({
    url: '/wmsStkcountinput/stkCountInPutAuSubmit',
    method: 'put',
    data
  })
}
//  盘点作业提交
export function stkCountInPutSubmit(data) {
  return request({
    url: '/wmsStkcountinput/stkCountInPutSubmit',
    method: 'put',
    data
  })
}
//  盘点作业反审核
export function stkCountInPutUnAudit(data) {
  return request({
    url: '/wmsStkcountinput/stkCountInPutUnAudit',
    method: 'put',
    data
  })
}
//  盘点作业审核
export function stkCountInPutAudit(data) {
  return request({
    url: '/wmsStkcountinput/stkCountInPutAudit',
    method: 'put',
    data
  })
}
//  盘点作业详情
export function getStkcountInPutById(params) {
  return request({
    url: '/wmsStkcountinput/getStkcountInPutHeadById',
    method: 'get',
    params
  })
}
// 盘点作业 details
export function getStkcountInPutByRequest(data) {
  return request({
    url: '/wmsStkcountinput/getStkcountInPutById',
    method: 'post',
    data
  })
}
// 盘点作业 详情检索
export function getNoQtyById(params) {
  return request({
    url: '/wmsStkcountinput/getNoQtyById',
    method: 'get',
    params
  })
}
// 盘点作业 删除行
export function deleteStkcountInPutDetails(data) {
  return request({
    url: '/wmsStkcountinput/deleteStkcountInPutDetails',
    method: 'post',
    data
  })
}
// 其他入库
export function queryTBdQTInstockList(data) {
  return request({
    url: '/wmsBdInstock/queryTBdQTInstockList',
    method: 'post',
    data
  })
}
// 其他入库wms查询库位
export function getTBdCodeListt(data) {
  return request({
    url: '/wmsBdCode/getTBdCodeList',
    method: 'post',
    data
  })
}
// 其他入库wms新增
export function insertInstock(data) {
  return request({
    url: '/wmsBdInstock/insertInstock',
    method: 'post',
    data
  })
}
// 其他入库wms更新
export function updateInstock(data) {
  return request({
    url: '/wmsBdInstock/updateInstock',
    method: 'post',
    data
  })
}
// 其他入库wms审核
export function updateStatus(data) {
  return request({
    url: '/wmsBdInstock/updateStatus',
    method: 'post',
    data
  })
}
// 其他入库wms详情
export function queryDetails(data) {
  return request({
    url: '/wmsBdInstock/queryDetails',
    method: 'post',
    data
  })
}
// 其他出库wms列表
export function queryTBdQTOutstockList(data) {
  return request({
    url: '/wmsBdOutstock/queryTBdQTOutstockList',
    method: 'post',
    data
  })
}
// 其他出库wms详情
export function queryDetails1(data) {
  return request({
    url: '/wmsBdOutstock/queryDetails',
    method: 'post',
    data
  })
}
// 其他出库wms新增
export function insertOutstock(data) {
  return request({
    url: '/wmsBdOutstock/insertOutstock',
    method: 'post',
    data
  })
}
// 其他出库wms更新
export function updateOutstock(data) {
  return request({
    url: '/wmsBdOutstock/updateOutstock',
    method: 'post',
    data
  })
}
// 其他出库wms审核反审核
export function updateStatus1(data) {
  return request({
    url: '/wmsBdOutstock/updateStatus',
    method: 'post',
    data
  })
}
// WMS ERP 数量校验
export function checkWmsAndErpQty(data) {
  return request({
    url: '/reporting/checkWmsAndErpQty',
    method: 'post',
    data
  })
}
// 根据仓库和物料Id,WMS库存同步到ERP
export function pushQtyWmsToErp(data) {
  return request({
    url: '/reporting/PushQtyWmsToErp',
    method: 'post',
    data
  })
}
// WMS盘盈列表
export function queryWmsStkcountGainList(data) {
  return request({
    url: '/wmsStkcountGain/queryWmsStkcountGainList',
    method: 'post',
    data
  })
}
// WMS盘kui列表
export function queryWmsStkcountLossList(data) {
  return request({
    url: '/wmsStkcountLoss/queryWmsStkcountLossList',
    method: 'post',
    data
  })
}
// 物料收发明细
export function queryStockQtylogList(data) {
  return request({
    url: '/wmsStockQtylog/queryStockQtylogList',
    method: 'post',
    data
  })
}
// wms移库列表
export function queryTransferList(data) {
  return request({
    url: '/wmsTransfer/queryTransferList',
    method: 'post',
    data
  })
}
// wms移库-详情
export function queryTransferDetails(data) {
  return request({
    url: '/wmsTransfer/queryTransferDetails',
    method: 'post',
    data
  })
}
// wms移库-提交
export function submitWmsTransfer(data) {
  return request({
    url: '/wmsTransfer/submitWmsTransfer',
    method: 'post',
    data
  })
}
// wms移库-反提交
export function notsubmitWmsTransfer(data) {
  return request({
    url: '/wmsTransfer/notsubmitWmsTransfer',
    method: 'post',
    data
  })
}
// wms移库-审核
export function reviewWmsTransfer(data) {
  return request({
    url: '/wmsTransfer/reviewWmsTransfer',
    method: 'post',
    data
  })
}
// wms移库-反审核
export function notreviewWmsTransfer(data) {
  return request({
    url: '/wmsTransfer/notreviewWmsTransfer',
    method: 'post',
    data
  })
}
// wms移库-新增
export function insertTransfer(data) {
  return request({
    url: '/wmsTransfer/insertTransfer',
    method: 'post',
    data
  })
}
// wms移库-修改
export function updateTransfer(data) {
  return request({
    url: '/wmsTransfer/updateTransfer',
    method: 'post',
    data
  })
}
// wms移库-删除
export function deleteTransfer(data) {
  return request({
    url: '/wmsTransfer/deleteTransfer',
    method: 'post',
    data
  })
}
// WMS盘盈信息详情
export function queryWmsGainListDetails(params) {
  return request({
    url: '/wmsStkcountGain/queryWmsGainListDetails',
    method: 'get',
    params
  })
}
// 新增ERP盘盈
export function insertErpGain(data) {
  return request({
    url: '/wmsStkcountGain/insertWmsGain',
    method: 'post',
    data
  })
}
// 修改ERP盘盈
export function updateWmsGain(data) {
  return request({
    url: '/wmsStkcountGain/updateWmsGain',
    method: 'post',
    data
  })
}
// 删除ERP盘盈
export function deleteWmsGain(data) {
  return request({
    url: '/wmsStkcountGain/deleteWmsGain',
    method: 'put',
    data
  })
}
// 提交ERP盘盈
export function submitWmsGain(data) {
  return request({
    url: '/wmsStkcountGain/submitWmsGain',
    method: 'post',
    data
  })
}
// 反提交ERP盘盈
export function notsubmitWmsGain(data) {
  return request({
    url: '/wmsStkcountGain/notsubmitWmsGain',
    method: 'post',
    data
  })
}
// 审核ERP盘盈
export function reviewWmsGain(data) {
  return request({
    url: '/wmsStkcountGain/reviewWmsGain',
    method: 'post',
    data
  })
}
// 反审核ERP盘盈
export function notreviewWmsGain(data) {
  return request({
    url: '/wmsStkcountGain/notreviewWmsGain',
    method: 'post',
    data
  })
}

// 新增ERP盘亏详情
export function queryWmsLossListDetails(params) {
  return request({
    url: '/wmsStkcountLoss/queryWmsLossListDetails',
    method: 'get',
    params
  })
}
// 新增ERP盘亏
export function insertWmsLoss(data) {
  return request({
    url: '/wmsStkcountLoss/insertWmsLoss',
    method: 'post',
    data
  })
}
// 修改ERP盘盈
export function updateWmsLoss(data) {
  return request({
    url: '/wmsStkcountLoss/updateWmsLoss',
    method: 'post',
    data
  })
}
// 删除ERP盘盈
export function deleteWmsLoss(data) {
  return request({
    url: '/wmsStkcountLoss/deleteWmsLoss',
    method: 'put',
    data
  })
}
// 提交ERP盘盈
export function submitWmsLoss(data) {
  return request({
    url: '/wmsStkcountLoss/submitWmsLoss',
    method: 'post',
    data
  })
}
// 反提交ERP盘盈
export function notsubmitWmsLoss(data) {
  return request({
    url: '/wmsStkcountLoss/notsubmitWmsLoss',
    method: 'post',
    data
  })
}
// 审核ERP盘盈
export function reviewWmsLoss(data) {
  return request({
    url: '/wmsStkcountLoss/reviewWmsLoss',
    method: 'post',
    data
  })
}
// 反审核ERP盘盈
export function notreviewWmsLoss(data) {
  return request({
    url: '/wmsStkcountLoss/notreviewWmsLoss',
    method: 'post',
    data
  })
}
